/*
 * File:     controllerwidget.h
 * Author:   Thomas Bruederli
 *
 * QWidget class to display the status of the wii controller.
 *
 * This file is part of the Qt-based cross-platform Wii device driver.
 *
 * Copyright (C) 2009-2010, Dominic Stalder & Thomas Bruederli
 * Licensed under the GNU Lesser General Public License (LGPL) as published
 * by the Free Software Foundation at http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * $Id: controllerwidget.h 5 2010-03-03 09:10:12Z roundcube $
 */

#ifndef CONTROLLERWIDGET_H
#define CONTROLLERWIDGET_H

#include <QWidget>

class QLabel;
class QLineEdit;

/**
 * The QWidget displaying the Wii Balance Board status
 */
class ControllerWidget : public QWidget
{
	Q_OBJECT
		
private:
	QLabel *bgimage, *statusLabel, *marker;
	QLineEdit *accXLabel, *accYLabel;
		
public:
	ControllerWidget(QWidget *parent = 0);
		
public slots:
	void setInstructions(int, const QString &msg, bool = false);
	void orientationChanged(double, double, double);
	void buttonChanged(int, int);
};

#endif
